<!--{include(pe_tpl('do_header.html'));}-->
<div class="login_bg1" style="margin-top:-20px">
	<div style="width:1000px; margin:0 auto">
		<div class="login_r">
			<div class="zctt">{$menutitle}</div>
			<form method="post" id="form">
			<div class="zc_input1">
				登录帐号：<input type="text" name="user_name" class="login_input1" placeholder="用户账号 / 手机号 / 邮箱" />
			</div>
			<div class="zc_input1 mat20">
				登录密码：<input type="text" name="user_pw" class="login_input1" placeholder="登录密码" onfocus="this.type='password'" />
			</div>
			<div class="clear"></div>
			<div class="mat15">
				<input type="hidden" name="pesubmit" />
				<input type="button" class="loginbtn" value="立即登录" />
			</div>
			</form>
			<div class="login_other">
				<div class="fl font12">
					<!--{if($cache_setting['login_qq_state']):}-->
					<a href="{$pe['host']}include/plugin/login/qqlogin/index.php?jump={$_g_jump}" class="dl_qq fl mar10">
						<img src="{$pe['host_tpl']}image/dl_qq.png" />
						<text>QQ</text>
					</a>
					<!--{endif;}-->
					<!--{if($cache_setting['login_wx_state']):}-->
					<a href="{$pe['host']}include/plugin/login/wxlogin/index.php?jump={$_g_jump}" class="dl_wx fl">
						<img src="{$pe['host_tpl']}image/dl_wx.png" />
						<text>微信</text>
					</a>
					<!--{endif;}-->
				</div>
				<a class="fr" href="{$pe['host']}user.php?mod=do&act=getpw" style="padding-right:0">忘记密码</a>
				<a href="{$pe['host']}user.php?mod=do&act=register" class="fr" style="border-right:1px solid #ddd">免费注册</a>
				<div class="clear"></div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function(){
	$(window).keydown(function (event) {
		if (event.keyCode == 13) $(":button").click();
	});
	$(":button").click(function(){
		if ($(":input[name='user_name']").val() == '') {
			pe_tip('请填写帐号');
			return false;
		}
		if ($(":input[name='user_pw']").val() == '') {
			pe_tip('请填写密码');
			return false;
		}
		$(this).val('登录中...');
		pe_submit('user.php?mod=do&act=login', function(json){
			if (json.code == 1) {
				if ('{$_g_jump}' != '') {
					pe_open('{$_g_jump}', 1000);
				}
				else {
					pe_open('user.php', 1000);				
				}
			}
			else {
	    		$(":button").val('登 录');			
			}
		})
	})
})
</script>
<!--{include(pe_tpl('do_footer.html'));}-->